package ui.activity;

import android.content.Intent;
import android.os.Handler;

import com.example.localvideo.R;

//启动页面
public class OpenActivity extends BaseActivity{
    @Override
    public int getLayout() {
        return R.layout.activity_open;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        //等待2S后跳转到主页面
        Handler handler= new Handler();
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent =  new Intent(OpenActivity.this,MainActivity.class);
                startActivity(intent);
                //然后关闭当前页面，免得点击返回键会回到这里
                finish();
            }
        },2000);
    }

    @Override
    public void initListener() {

    }
}
